package cn.xorange.commons.core.handler;

import cn.xorange.commons.data.handler.IFillData;
import cn.xorange.commons.security.utils.SecurityUtils;
import org.springframework.stereotype.Component;

/**
 * @author : yangjian
 * date : 2024/12/23
 * description :
 */

@Component
public class FillDataImpl implements IFillData {
    @Override
    public Long tenantId() {
        return SecurityUtils.getTenantId();
    }

    @Override
    public Long userId() {
        return SecurityUtils.getUserId();
    }

    @Override
    public String userName() {
        return SecurityUtils.getUsername();
    }
}
